package com.tchhy.provider.data.profit

import android.os.Parcel
import android.os.Parcelable

/**
 * @author: pujialin
 * @date: 2020-09-30 10:58
 * @desc:
 */
class BankInfo() : Parcelable {
    var bankName: String? = null
    var code: String? = null
    var icon: String? = null
    var background: String? = null

    constructor(parcel: Parcel) : this() {
        bankName = parcel.readString()
        code = parcel.readString()
        icon = parcel.readString()
        background = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(bankName)
        parcel.writeString(code)
        parcel.writeString(icon)
        parcel.writeString(background)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<BankInfo> {
        override fun createFromParcel(parcel: Parcel): BankInfo {
            return BankInfo(parcel)
        }

        override fun newArray(size: Int): Array<BankInfo?> {
            return arrayOfNulls(size)
        }
    }
}